<!DOCTYPE html>
<head>
    <title>Learning AngularJS</title>

    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js" type="text/javascript"></script>

    <!--script src="//raw.github.com/angular-ui/bootstrap/gh-pages/ui-bootstrap-0.9.0.js" type="text/javascript"></!--script-->
    <!--script src="//raw.github.com/angular-ui/bootstrap/gh-pages/ui-bootstrap-tpls-0.9.0.min.js" type="text/javascript"></script-->
    <script src="/Libs/ui-bootstrap-0.9.0.js" type="text/javascript"></script>
    <script src="/Libs/ui-bootstrap-tpls-0.9.0.min.js" type="text/javascript"></script>

    <script src="app.js" type="text/javascript"></script>
    <script src="maincontroller.js" type="text/javascript"></script>

    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!--<link href="//netdna.bootstrapcdn.com/bootswatch/3.1.1/amelia/bootstrap.min.css" rel="stylesheet" type="text/css" />-->
    <link href="//netdna.bootstrapcdn.com/bootswatch/3.1.1/amelia/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="sticky-footer-navbar.css" rel="stylesheet" type="text/css" />

</head>
<body>

    <!-- Fixed navbar -->
    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">The Gold Adventure</a>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Home</a></li>
                    <li><a href="#about">About</a></li>
                    <li><a href="#contact">Contact</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Action</a></li>
                            <li><a href="#">Another action</a></li>
                            <li><a href="#">Something else here</a></li>
                            <li class="divider"></li>
                            <li class="dropdown-header">Nav header</li>
                            <li><a href="#">Separated link</a></li>
                            <li><a href="#">One more separated link</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!--/.nav-collapse -->
        </div>
    </div>
    <div class="container" id='content' ng-app='MyTutorialApp' ng-controller='MainController' ng-init="init()">
        <input type='hidden' ng-model='locationid' />
        <div ng-repeat='location in locations' ng-show='location.id == locationid'>
            <div class="page-header">
                <h1>{{location.id}} {{location.title}}</h1>
            </div>
            <p ng-repeat='paragraph in location.body'>
                {{paragraph}}
            </p>
            <div class="btn-group">
                <button class="btn btn-default" ng-repeat='command in location.commands' ng-click='goto(command)'>
                    {{command.commandtext}} > {{command.gotodestinationid}}
                </button>
            </div>
        </div>
    </div>

    <div id="footer">
        <div class="container">
            <p class="text-muted">Place sticky footer content here.</p>
        </div>
    </div>

</body>
</html>